package org.garbagecan.xstreamstudy.userconf;

import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;

public class ViewPreference {

	private String type;
	private boolean enableAutoRefresh;
	private int maxPageSize;
	private int refreshTime;
	private String selectedColumns;
	private String unselectedColumns;
	private String sortBy;
	private String sortDir;
	private String titleName;
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	public boolean isEnableAutoRefresh() {
		return enableAutoRefresh;
	}
	public void setEnableAutoRefresh(boolean enableAutoRefresh) {
		this.enableAutoRefresh = enableAutoRefresh;
	}
	public int getMaxPageSize() {
		return maxPageSize;
	}
	public void setMaxPageSize(int maxPageSize) {
		this.maxPageSize = maxPageSize;
	}
	public int getRefreshTime() {
		return refreshTime;
	}
	public void setRefreshTime(int refreshTime) {
		this.refreshTime = refreshTime;
	}
	public String getSelectedColumns() {
		return selectedColumns;
	}
	public void setSelectedColumns(String selectedColumns) {
		this.selectedColumns = selectedColumns;
	}
	public String getUnselectedColumns() {
		return unselectedColumns;
	}
	public void setUnselectedColumns(String unselectedColumns) {
		this.unselectedColumns = unselectedColumns;
	}
	public String getSortBy() {
		return sortBy;
	}
	public void setSortBy(String sortBy) {
		this.sortBy = sortBy;
	}
	public String getSortDir() {
		return sortDir;
	}
	public void setSortDir(String sortDir) {
		this.sortDir = sortDir;
	}
	public String getTitleName() {
		return titleName;
	}
	public void setTitleName(String titleName) {
		this.titleName = titleName;
	}
	public String toString() {
		return ToStringBuilder.reflectionToString(this, ToStringStyle.MULTI_LINE_STYLE);
	}
}
